import request from '@/utils/request'
//上传svga
export function UploadFlash(data){
  return request({
    url:'/api/admin/gift/img/upload/flash',
    method:'post',
    data:data
  })
}
//上传小图
export function UploadIcon(data){
  return request({
    url:'/api/admin/gift/img/upload/icon',
    method:'post',
    data:data
  })
}
//管理员手动加值
export function CoinAdd(data){
  return request({
    url:'/api/admin/user/coin/add',
    method:'post',
    data:data
  })
}
//礼物获取列表
export function getAll(data){
  return request({
    url:'/api/admin/gift/getAll',
    method:'post',
    data:{
      adminName:data.adminName,
      token:data.token,
    }
  })
}
//删除礼物
export function Gdel(e,admin){
  return request({
    url:'/api/admin/gift/delete',
    method: 'post',
    data:{id:e,
   adminName:admin.adminName,
   token:admin.token,}
  })
}
//修改礼物
export function ModGift(data){
  return request({
    url:'/api/admin/gift/modOne',
    method:'post',
    data:data
  })
}
//添加礼物
export function Gadd(data){
  return request({
    url:'/api/admin/gift/add',
    method:'post',
    data:data
  })
}
//修改状态
export function enable_set(date,admin){
  return request({
    url:'/api/admin/gift/enable/set',
    method:'post',
    data:{
  adminName:admin.adminName,
      token:admin.token,
      id:date.id,
      enable:date.enable
    }
  })
}
//获取游戏信息
export function cube_getAll(admin){
  return request({
    url:'/api/admin/cube/getAll',
    method:'post',
    data:{
  adminName:admin.adminName,
      token:admin.token,
    }
  })
}
//修改游戏信息
export function cube_mod(data,admin){
  return request({
    url:'/api/admin/cube/mod',
    method:'post',
    data:{
  adminName:admin.adminName,
      token:admin.token,
      cubes:data
    }
  })
}
//注销用户
export function cancelled(data,admin){
  return request({
    url:'/api/admin/user/cancelled',
    method:'post',
    data:{
      adminName:admin.adminName,
      token:admin.token,
      userId:data.userId
    }
  })
}
//实名认证列表
export function realNameAuth(data){
  return request({
    url:'/api/admin/user/realNameAuth/list/get',
    method:'post',
    data:data
  })
}
// 实名认证操作
export function deal(data){
  return request({
    url:'/api/admin/user/realNameAuth/deal',
    method:'post',
    data:data
  })
}
//获取工会列表
export function unionListPost(data){
  return request({
    url:'/api/admin/union/getList',
    method:'post',
    data:data
  })
}
//解散工会
export function shutdown(data){
  return request({
    url:'/api/admin/union/shutdown',
    method:'post',
    data:data
  })
}
//获取用户
export function UserGet(admin,page){
  return request({
    url:'/api/admin/user/get',
    method:'post',
    data:{
      adminName:admin.adminName,
      token:admin.token,
      pageIndex: page.pageIndex,
      pageSize: page.pageSize
    }
  })
}
//用户打赏纪录
export function getRecords(data,admin,page){
  return request({
    url:'/api/admin/gift/send/getRecords',
    method:'post',
    data:{
      adminName:admin.adminName,
      token:admin.token,
      pageNum: page.pageIndex,
      pageSize: page.pageSize,
      userId:data
    }
  })
}

//靓号被购买记录
export function getGoodsRecords(data,adminName,token,page){
  return request({
    url:'/api/admin/user/buy/records',
    method:'post',
    data:{
      adminName:adminName,
      token:token,
      pageNum: page.pageIndex,
      pageSize: page.pageSize,
      id:data
    }
  })
}

//主播收礼纪录
export function RgetRecords(data,admin,page){
  return request({
    url:'/api/admin/gift/receive/getRecords',
    method:'post',
    data:{
      adminName:admin.adminName,
      token:admin.token,
      pageNum: page.pageIndex,
      pageSize: page.pageSize,
      userId:data
    }
  })
}
//在播房间
export function living(admin,page){
  return request({
    url:'/api/admin/user/get/living',
    method:'post',
    data:{
      adminName:admin.adminName,
      token:admin.token,
      pageNum: page.pageIndex,
      pageSize: page.pageSize,
    }
  })
}
//中奖纪录
export function recordList(admin,page){
  return request({
    url:'/api/admin/cube/draw/record/list',
    method:'post',
    data:{
      adminName:admin.adminName,
      token:admin.token,
      pageNum: page.pageIndex,
      pageSize: page.pageSize,
    }
  })
}
//工会成员
export function getMembers(data){
  return request({
    url:'/api/admin/union/getMembers',
    method:'post',
    data:data
  })
}
//强制下播
export function Forceddowncast(data,admin){
  return request({
    url:'/api/admin/room/manage/forceStop',
    method:'post',
    data:{
      adminName:admin.adminName,
      token:admin.token,
      roomId:data.roomId,
      reason:data.reason
    }
  })
}
//修改轮播图
export function CarouselMod(data){
  return request({
    url:'/api/admin/carousel/mod',
    method:'post',
    data:data
  })
}
//提现处理
export function Tixiandeal(data){
  return request({
    url:'/api/admin/tixian/deal',
    method:'post',
    data:data
  })
}
//提现申请
export function TixiangetRecords(data){
  return request({
    url:'/api/admin/tixian/getRecords',
    method:'post',
    data:data
  })
}
// 获取管理员列表
export function Administration(data){
  return request({
    url:'/api/admin/getAll',
    method:'post',
    data:data
  })
}
//添加管理员
export function AdminAdd(data){
  return request({
    url:'/api/admin/add',
    method:'post',
    data:data
  })
}
//删除管理员
export function deladmin(data){
  return request({
    url:'/api/admin/delete',
    method:'post',
    data:data
  })
}
//重置管理员密码
export function ModPassword(data){
  return  request({
    url:'/api/admin/mod/password',
    method:'post',
    data:data
  })
}
//修改管理员密码
export function PasswordReset(data){
  return request({
    url:'/api/admin/password/reset',
    method:'post',
    data:data
  })
}
//获取举报列表
export function jubaoList(data){
	return request({
		url:'/api/admin/jubao/getList',
		method:'post',
		data:data
	})
}
//处理举报
export function jubaoDeal(data){
  return request({
    url:"/api/admin/jubao/deal",
    method:'post',
    data:data
  })
}
//工会审核
export function unionRegist(data){
  return request({
    url:'/api/admin/union/deal/union/regist',
    method:'post',
    data:data
  })
}

//获取期次
export function incomeGetTerms(data){
  return request({
    url:"/api/admin/union/income/getTerms",
    method:'post',
    data:data
  })
}
//获取工会结算
export function incomeGetList(data){
  return request({
    url:"/api/admin/union/income/getList",
    method:'post',
    data:data
  })
}
export function vipLevelGetAll(data){
  return request({
    url:'/api/admin/vipLevel/getAll',
    method:'post',
    data:data
  })
}
//获取收益分成
export function proportionGet(data){
	return request({
		url:'/api/admin/proportion/get',
		method:'post',
		data:data
			})
}
//设置收益分成
export function proportionUpdate(data){
  return request({
    url:'/api/admin/proportion/update',
    method:'post',
    data:data
  })
}
// 添加靓号
export function goodNameAdd(data){
  return request({
    url:'/api/admin/goodName/add',
    method:'post',
    data:data
  })
}
//获取靓号列表
export function goodNameGetAll(data){
  return request({
    url:'/api/admin/goodName/getAll',
    method:'post',
    data:data
  })
}
//删除靓号
export function goodNameDelete(data){
  return request({
    url:'/api/admin/goodName/delete',
    method:'post',
    data:data
  })
}
//获取管理员加值记录
export function addDetail(data){
  return request({
    url:'/api/admin/user/coin/addDetail',
    method:'post',
    data:data
  })
}
//获取推荐位
export function RecommendList(data){
	return request({
		url:'/api/admin/roomRecommend/getList',
		method:'post',
		data:data
	})
}
//添加推荐位
export function RecommendAdd(data){
	return request({
		url:'/api/admin/roomRecommend/add',
		method:'post',
		data:data
	})
}
//删除推荐位
export function RecommendDel(data){
	return request({
		url:'/api/admin/roomRecommend/delete',
		method:'post',
		data:data
	})
}
//修改推荐位
export function RecommendMod(data){
  return request({
    url:'/api/admin/roomRecommend/mod',
    method:'post',
    data:data
  })
}
//获取服务器列表
export function ServerList(data){
  return request({
    url:'/api/admin/server/getAll',
    method:'post',
    data:data
  })
}
//修改服务器
export function ServerMod(data){
  return request({
    url:'/api/admin/server/mod',
    method:'post',
    data:data
  })
}
//删除服务器
export function ServerDel(data){
  return request({
    url:'/api/admin/server/delete',
    method:'post',
    data:data
  })
}
//添加服务器
export function ServerAdd(data){
  return request({
    url:'/api/admin/server/add',
    method:'post',
    data:data
  })
}
//轮播图列表
export function CarouselList(data){
    return request({
      url:'/api/admin/carousel/getAll',
      method:'post',
      data:data
    })
}
//上传照片
export function CarouselUpload(data){
  return request({
    url:'/api/admin/carousel/img/upload',
    method:'post',
    data:data
  })
}
//添加轮播图
export function CarouselAdd(data){
  return request({
    url:'/api/admin/carousel/add',
    method:'post',
    data:data
  })
}
//删除轮播图
export function CarouselDel(data){
  return request({
    url:'/api/admin/carousel/delete',
    method:'post',
    data:data
  })
}
//获取数据库列表
export function SqlList(data){
  return request({
    url:'/api/admin/database/view',
    method:'post',
    data:data
  })
}
//数据优化
export function SqlOptimize(data){
  return request({
    url:'/api/admin/database/optimize',
    method:'post',
    data:data
  })
}
//获取魔方状态
export function ConfigGet(data){
	return request({
		url:'/api/admin/config/cube/config/get',
		method:'post',
		data:data
	})
}
//设置魔方状态
export function ConfigSet(data){
  return request({
    url:'/api/admin/config/cube/config/set',
    method:'post',
    data:data
  })
}
//获取直播类型
export function LiveTypeGet(data){
  return request({
    url:'/api/admin/config/liveType/get',
    method:'post',
    data:data
  })
}
//修改直播类型
export function LiveTypeSet(data){
  return request({
    url:'/api/admin/config/liveType/set',
    method:'post',
    data:data
  })
}
//查询富豪等级
export function RichLevelGetAll(data){
  return request({
    url:'/api/admin/richLevel/getAll',
    method:'post',
    data:data
  })
}
//删除富豪等级
export function RichLevelDel(data){
  return request({
    url:'/api/admin/richLevel/delete',
    method:'post',
    data:data
  })
}
//添加，修改富豪等级
export function RichLevelMod(data){
  return request({
    url:'/api/admin/richLevel/mod',
    method:'post',
    data:data
  })
}
//富豪等级照片
export function RichLevelUpload(data){
  return request({
    url:'/api/admin/richLevel/pic/upload',
    method:'post',
    data:data
  })
}
